Open
Conversation
…adhere to the updated model
…ts, courses, and teaching records
…proved error handling
…mprehensive test cases
… for enhanced testing
…s with additional test cases
…nd update parsing logic
…ed code and enhancing data aggregation logic
…or accurate submissions count
Helias
reviewed
Mar 25, 2026
Helias
reviewed
Mar 25, 2026
Helias
reviewed
Mar 25, 2026
Helias
reviewed
Mar 25, 2026
Helias
reviewed
Mar 25, 2026
Member
|
Did you test it with the current OPIS-Manager app? |
Helias
reviewed
Mar 25, 2026
Author
|
I tested it using a local database initialized with the migrations from opis-manager-core. |
Member
|
I added the same lint.yml file in the main branch to see if the pipeline starts here |
Member
|
please solve merge conflict |
Helias
approved these changes
Mar 26, 2026
Author
|
How should I proceed with the CD pipeline? |
Member
Helias
reviewed
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Relates to UNICT-Quality-Development/qd-projects#46
Implementazione del web scraper Python per l'estrazione dei dati OPIS relativi agli anni accademici dal 2021/2022 al 2024/2025. Lo scraper interroga le API pubbliche di SmartEdu UniCT (https://public.smartedu.unict.it/EnqaDataViewer) e popola il database seguendo la struttura definita in opis-manager-core.
Features
Note
Dati Schede OPIS estratti dalla API (se presenti)
totale_schede: Totale questionari compilati dai frequentanti.totale_schede_nf: Totale dei questionari compilati dai non frequentanti.fc: Numero di studenti fuori corso.inatt_nf: Numero di inattivi non frequentanti.domande: Array delle risposte ai questionari dei frequentanti.domande_nf: Array delle risposte ai questionari dei non frequentanti.motivo_nf: Motivi della non frequenza.sugg: Suggerimenti dei frequentanti.sugg_nf: Suggerimenti dei non frequentanti.femmine: Numero di studentesse frequentanti.femmine_nf: Numero di studentesse non frequentanti.inatt: Numero di inattivi frequentanti.eta: Statistiche sulle fasce d'età.anno_iscr: Anno di iscrizione.num_studenti: Statistica sul numero medio di studenti.ragg_uni: Statistiche sul domicilio o sul tempo impiegato per arrivare in sede.studio_gg: Statistiche sulle ore di studio giornaliere.studio_tot: Statistiche sulle ore di studio totali.Problema — codici GOMP alfanumerici
Alcune attività hanno un activityCode alfanumerico (es. "A3688"). La colonna codice_gomp nel database è di tipo INT, rendendo impossibile l'inserimento di questi record. Tali attività vengono attualmente saltate con un warning in fase di elaborazione. Per risolvere definitivamente il problema sarebbe necessaria una migration che cambi il tipo della colonna in VARCHAR.
Problema — Suddivisione insegnamenti in canali
Le API non forniscono dati espliciti per i canali. Nello specifico:
channel -> sempre null.
part_code -> sempre null.
part_name (nome_modulo a DB) -> contiene una stringa se l'insegnamento è diviso in moduli (es. "PROGRAMMAZIONE 2" o "LABORATORIO"), altrimenti è null.
Workaround
Ho gestito l'assegnazione dei canali ai record duplicati di Insegnamento in questo modo:
Problema di performance — Lentezza API sorgenti
Le API risultano estremamente lente nei tempi di risposta. Un'esecuzione dello scraper richiede circa 24 ore per recuperare i questionari OPIS di un singolo anno accademico (2021/2022).
Mitigations
Per cercare di rendere l'esecuzione più efficiente sono state introdotte le seguenti ottimizzazioni:
Tuttavia i tempi rimangono comunque molto lunghi.